<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColNicknameToForumDiscussTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {


        Schema::table('forum_discuss', function (Blueprint $table) {
            $table->integer('photo_id')->default(0)->comment('头像')->after('id');
            $table->string('nick_name')->nullable()->commnet('昵称')->after('user_id');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
